/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cafeinatpv;

import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;

/**
 *
 * @author sempere
 */
public class VentaProxy implements Venta {
    
    private VentaXML esclavo= null;

    public VentaProxy(String src) {
        esclavo = new VentaXML(src);
    }
    public boolean leeVenta() throws ParserConfigurationException, SAXException, IOException {
        return(esclavo.leeVenta());
    }

    public void cancelaVenta() {
       esclavo.cancelaVenta();
    }

    public LinVenta pasaLinVenta() {
        return(esclavo.pasaLinVenta());
    }

    @Override
    public String toString(){
        return(esclavo.toString());
    }

    public String getDia(){
        return(esclavo.getDia());

    }

    public String getHora(){
        return(esclavo.getHora());
    }

    public boolean getEmpleado() {
        return(esclavo.getEmpleado());
    }

    public boolean getFidelidad() {
        return(esclavo.getFidelidad());
    }
    

}
